import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Location } from '@angular/common';

@Component({
  selector: 'app-topbar-input',
  templateUrl: './topbar-input.component.html',
  styleUrls: ['./topbar-input.component.css']
})
export class TopbarInputComponent implements OnInit {

  constructor(private location: Location, private currentRouter: ActivatedRoute, private router: Router) { }

  ngOnInit() {
  }

  public goSearch(): void {
    this.router.navigate(['./search']);
  }

}
